
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript">
    $(function(){
        $("#dgUserLog").datagrid({
            url:"${pageContext.request.contextPath}/log/selectAllLog",
            title:"日志列表",
            width:800,
            pagination:true,//如果为true，则在DataGrid控件底部显示分页工具栏。默认为false
            loadMsg:"拼命加载中...",// string  在从远程站点加载数据的时候显示提示消息
            toolbar:"#myToolbar4",//在<div>标签上定义工具栏
            columns:[[    //表格相当于二维数组，

                {title:"编号",field:"logId",checkbox:true},//一个{}表示一列
                {title:"用户",field:"username"},
                {title:"内容",field:"logContent"},
                {title:"时间",field:"logDate"},
                {title:"ip地址",field:"logIp"},
            ]]
        });
    })

</script>

<table id="dgUserLog"> </table>

<div id="myToolbar4">  <%--工具栏按钮--%>
    <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove'" onclick="doMultiDelete()">批量删除</a>
</div>




